using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;

namespace WFTest.Entity
{
    public partial class Model2 : DbContext
    {
        public Model2()
            : base("name=Model2")
        {
        }

        public virtual DbSet<v_stk_inventory_list> v_stk_inventory_list { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<v_stk_inventory_list>()
                .Property(e => e.FID)
                .IsUnicode(false);

            modelBuilder.Entity<v_stk_inventory_list>()
                .Property(e => e.stock_primary_unit_qty)
                .HasPrecision(23, 10);

            modelBuilder.Entity<v_stk_inventory_list>()
                .Property(e => e.FOWNERTYPEID)
                .IsUnicode(false);
        }
    }
}
